<%@ page import="StudentLesson.StuCourseWorkDao" %>
<%@ page import="StudentLesson.StuCourseWorkEnity" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/8/26
  Time: 14:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<%
    int id=Integer.parseInt(request.getParameter("id"));
    StuCourseWorkDao stuCourseWorkDao=new StuCourseWorkDao();
    StuCourseWorkEnity stuCourseWorkEnity=stuCourseWorkDao.getStuCouWor(id);
%>
<head>
    <title>作业评分</title>
    <link href="/SystemerNav/SystemerNav.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<body background="/LoginInterface/loginFace.jpg">
<div class="container">
    <table class="table table-bordered">
        <tr>
            <td colspan="2">课程作业详细</td>
        </tr>
        <tr>
            <td>提交日期</td>
            <td><%=stuCourseWorkEnity.getSubmitTime()%></td>
        </tr>
        <tr>
            <td>提交人学号</td>
            <td><%=stuCourseWorkEnity.getStudentNo()%></td>
        </tr>
        <tr>
            <td>作业描述</td>
            <td><%=stuCourseWorkEnity.getWorkDesc()%></td>
        </tr>
        <tr>
            <td>作业附件</td>
            <td><a href="/TeachLesson/downloadCourseWorkServlet?filePath=<%=stuCourseWorkEnity.getFilePath()%>" target="_blank">相关作业附件下载</a> </td>
        </tr>
        <tr>
            <td>评分</td>
            <td>
                <form action="/TeachLesson/updateScoreServlet">
                    <input type="hidden" name="id" value="<%=stuCourseWorkEnity.getId()%>">
                <div class="col-xs-2">
                    <input type="text" class="form-control" placeholder="作业评分" name="score">
                </div>
                    <button type="submit" class="btn btn-success">评分</button>
                </form>
            </td>
        </tr>

    </table>
</div>
</body>
</html>
